package com.example.last.dao;

import com.example.last.entity.Paper;
import com.example.last.entity.Params;
import com.example.last.entity.Questions;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PaperDao {
    List<Paper> findBySearch(@Param("params") Params params);

    void add(Paper paper);

    void update(Paper paper);

    void delete(Integer id);

    List<Paper> findAll();

    List<Questions> findQuestionById(Integer id);
}
